from flask_restful import Api

from info.apis.admin import init_admin
from info.apis.analysis import init_analysis
from info.apis.infomanage import init_infomanage
from info.apis.myworkbench import init_myworkbench
from info.apis.peoplechange import init_peoplechange
from info.apis.systemmanagement import init_systemmanagement

api = Api()
def init_api(app):
    # 管理员模块
    init_admin(api,"admin")
    # 分析决策模块
    init_analysis(api,"analysis")
    # 信息维护模块
    init_infomanage(api, "info")
    # 我的工作台模块
    init_myworkbench(api,"workbench")
    # 人员变动模块
    init_peoplechange(api,"people")
    # 系统管理模块
    init_systemmanagement(api, "system")
    api.init_app(app)